export const unitColumn = [
    {
        text: true,
        prop: 'index',
        label: '序号',
        width: '50',
    },
    {
        text: true,
        prop: 'name',
        label: '单位名称',
        width: '80',
        align: 'left',
    },
    {
        text: true,
        prop: 'description',
        label: '单位描述',
        width: '150',
        align: 'left',
    },
    {
        text: true,
        prop: 'remark',
        label: '备注',
        width: '100',
        align: 'left',
    },
    {
        operationBtn: true,
        align: 'left',
        icon: 'el-icon-plus',
        type: 'text',
        isOperation: true,
        label: '操作',
        maxWidth: '150',
        operation: [
            {
                type: 'text',
                label: '',
                icon: 'el-icon-edit-outline',
                color: () => {
                    return '#4FD5FF';
                },
                buttonClick: 'editRow',
                isShow: (row, $index) => {
                    return true;
                },
            },
            {
                type: 'text',
                label: '',
                icon: 'el-icon-delete',
                color: () => {
                    return '#FF2424';
                },
                buttonClick: 'delete',
                isShow: (row, $index) => {
                    return true;
                },
            },
        ],
    },
];

export const equipmentColumn = [
    {
        text: true,
        prop: 'indexId',
        label: '序号',
        width: '50',
    },
    {
        text: true,
        prop: 'name',
        label: '设备名称',
        width: '80',
        align: 'left',
    },
    {
        text: true,
        prop: 'device_code',
        label: '设备号',
        width: '80',
        align: 'left',
    },
    {
        text: true,
        prop: 'scene_name',
        label: '所属单位',
        width: '80',
        align: 'left',
    },
    {
        operationBtn: true,
        align: 'left',
        icon: 'el-icon-plus',
        type: 'text',
        isOperation: true,
        label: '操作',
        maxWidth: '150',
        operation: [
            {
                type: 'text',
                label: '',
                icon: 'el-icon-edit-outline',
                color: () => {
                    return '#4FD5FF';
                },
                buttonClick: 'editRow',
                isShow: (row, $index) => {
                    return true;
                },
            },
            {
                type: 'text',
                label: '',
                icon: 'el-icon-copy-document',
                color: () => {
                    return '#4FD5FF';
                },
                buttonClick: 'moveShow',
                isShow: (row, $index) => {
                    return true;
                },
            },
            {
                type: 'text',
                label: '',
                icon: 'el-icon-delete',
                color: () => {
                    return '#FF2424';
                },
                buttonClick: 'deleteRow',
                isShow: (row, $index) => {
                    return true;
                },
            },
        ],
    },
];

export const subaccountColumn = [
    {
        text: true,
        prop: 'indexId',
        label: '序号',
        width: '50',
    },
    {
        text: true,
        prop: 'test',
        label: '用户名',
        width: '80',
    },
    {
        text: true,
        prop: 'test1',
        label: '手机号',
        width: '80',
    },
    {
        text: true,
        prop: 'test3',
        label: '邮箱',
        width: '100',
    },
    {
        text: true,
        prop: 'test4',
        label: '用户类型',
        width: '100',
    },
    {
        text: true,
        prop: 'test5',
        label: '用户状态',
        width: '100',
    },
    {
        text: true,
        prop: 'test6',
        label: '注册时间',
        width: '100',
    },
    {
        operationBtn: true,
        icon: 'el-icon-plus',
        type: 'text',
        isOperation: true,
        label: '操作',
        maxWidth: '150',
        operation: [
            {
                type: 'text',
                label: '',
                icon: 'el-icon-edit-outline',
                color: () => {
                    return '#4FD5FF';
                },
                buttonClick: 'editRow',
                isShow: (row, $index) => {
                    return true;
                },
            },
            {
                type: 'text',
                label: '',
                icon: 'el-icon-copy-document',
                color: () => {
                    return '#4FD5FF';
                },
                buttonClick: 'moveShow',
                isShow: (row, $index) => {
                    return true;
                },
            },
            {
                type: 'text',
                label: '',
                icon: 'el-icon-delete',
                color: () => {
                    return '#FF2424';
                },
                buttonClick: 'deleteRow',
                isShow: (row, $index) => {
                    return true;
                },
            },
        ],
    },
];

export const imgMessageColumn = [
    {
        text: true,
        prop: 'indexId',
        label: '序号',
        width: '50',
    },
    {
        text: true,
        prop: 'test',
        label: '设备名称',
        width: '100',
    },
    {
        text: true,
        prop: 'test1',
        label: '时间',
        width: '100',
    },
    {
        operationBtn: true,
        icon: 'el-icon-plus',
        type: 'text',
        isOperation: true,
        label: '操作',
        maxWidth: '150',
        operation: [
            {
                type: 'text',
                label: '',
                icon: 'el-icon-picture',
                color: () => {
                    return '#4FD5FF';
                },
                buttonClick: 'editRow',
                isShow: (row, $index) => {
                    return true;
                },
            },

            {
                type: 'text',
                label: '',
                icon: 'el-icon-delete',
                color: () => {
                    return '#FF2424';
                },
                buttonClick: 'deleteRow',
                isShow: (row, $index) => {
                    return true;
                },
            },
        ],
    },
];
